From: Marco Trevisan (TreviƱo) Date: Mon, 4 Mar 2019 23:39:54 +0000 (-0600) Subject: layout: Use an invisible but mapped actor as dummy cursor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~861^2^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=746875258dba5fbb1eac802b14732049e9b1c518;p=gnome-shell.git layout: Use an invisible but mapped actor as dummy cursor Since this could be used as boxpointer source, it should be marked as mapped, or it will be ignored. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/435 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index e3c93a923..30e750dc5 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -252,7 +252,7 @@ var LayoutManager = GObject.registerClass({ // A dummy actor that tracks the mouse or text cursor, based on the // position and size set in setDummyCursorGeometry. - this.dummyCursor = new St.Widget({ width: 0, height: 0, visible: false }); + this.dummyCursor = new St.Widget({ width: 0, height: 0, opacity: 0 }); this.uiGroup.add_actor(this.dummyCursor); global.stage.remove_actor(global.top_window_group);